package top.infopub.mgr.bpa.service;


import java.util.List;

import com.github.pagehelper.Page;

import top.infopub.mgr.bpa.domain.ProSettleDomain;
import top.infopub.mgr.bpa.vo.ProSettleVo;
import top.infopub.model.bpa.ProSettle;
import top.infopub.model.bpa.ProSettleAtt;
import top.infopub.model.bpa.ProSettleDetail;
import top.infopub.model.bpa.ProSettleFee;
import top.infopub.generic.GenericService;


public interface ProSettleService extends GenericService<ProSettle, String> {

    /**
     * 根据条件查询项目预（结）算记录
     * @param ProSettleVo
     * @return 
     * @see
     */
    Page<ProSettleDomain> selectByDomainWhere(Page<ProSettleDomain> page, ProSettleVo proSettleVo);

    /**
     * 根据条件查询项目预（结）算记录--我审批的列表
     * @param ProSettleVo
     * @return 
     * @see
     */
    Page<ProSettleDomain> selectMyCheckByDomainWhere(Page<ProSettleDomain> page,
                                                     ProSettleVo proSettleVo);

    /**
     * 执行-新增
     */
    void saveProSettle(ProSettle proSettle, List<ProSettleDetail> proSettleDetails,
                       List<ProSettleAtt> proSettleAtts, ProSettleFee proSettleFee);
    
    /**
     * 详情页面
     */
    ProSettleVo queryById(String id);

}